package com.java.sort;

import java.util.Scanner;

public class SortNumber {
	//??????
	public SortNumber(){
	}

	public static int number = 3;//??????? number

	public static void main(String[] args) {
		
		int number = 3;//??????
		
		int a[] = new int[number];
		Scanner in = new Scanner(System.in);
		// ??????????????????????
		for (int i = 0; i < a.length; i++) {
			System.out.println("???????" + i + "??????");
			a[i] = in.nextInt();
		}
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a.length; j++) {
				if (a[j] >= a[i]) {
					int temp = a[j];
					a[j] = a[i];
					a[i] = temp;

				}
			}
		}
		System.out.println("??ะก?????????");
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
		int b[] = a.clone();
		System.out.println(b[0]);
		
	}
	   
}
